<%@taglib prefix="s" uri="/struts-tags" %>

<s:if test="%{categories[0] != 'N/A'}">
<div id="tmpDiv<s:property value="%{nodeId}" />">
	<s:iterator value="categories" var="categories" status="status">
		<s:property value="%{categories[#status.index]}" />
		<s:if test="#status.last == false">-></s:if>
	</s:iterator>
	<s:hidden name="categoryId" value="%{nodeId}" />
	<img src="<%= request.getContextPath() %>/images/close.jpg" onclick="removeElement('tmpDiv<s:property value="%{nodeId}" />')" />
</div>
</s:if>
<s:else>
	N/A
</s:else>